<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
  <title>立冬快乐 · 暖心祝福</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    body {
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
      background: linear-gradient(to bottom, #e6f2ff, #ffffff);
      color: #333;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 20px;
      overflow-x: hidden;
    }
    .container {
      max-width: 90%;
      background: rgba(255, 255, 255, 0.9);
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    h1 {
      font-size: 28px;
      color: #d32f2f;
      margin-bottom: 20px;
      animation: fadeIn 1s ease;
    }
    p {
      font-size: 18px;
      line-height: 1.6;
      margin: 15px 0;
      color: #555;
    }
    .snowflake {
      position: absolute;
      color: #fff;
      font-size: 20px;
      opacity: 0.7;
      pointer-events: none;
      z-index: -1;
      animation: fall linear forwards;
    }
    @keyframes fall {
      to {
        transform: translateY(100vh);
      }
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }
    .footer {
      margin-top: 20px;
      font-size: 14px;
      color: #999;
    }
  </style>
</head>
<body>
  <div class="container">
    <h1>❄️ 立冬快乐 ❄️</h1>
    <p>北风潜入悄无声，未品浓秋已立冬。</p>
    <p>愿你三冬暖，愿你春不寒；</p>
    <p>愿你天黑有灯，下雨有伞；</p>
    <p>愿你一路上，有良人相伴。</p>
    <p>—— 立冬安康 🍲</p>
    <div class="footer">点击右上角 ··· 分享给好友</div>
  </div>

  <script>
    // 简易飘雪效果（轻量，不影响性能）
    function createSnow() {
      if (window.innerWidth < 500) return; // 小屏设备关闭雪花避免卡顿
      const snowflakes = '❄❅❆';
      setInterval(() => {
        const snow = document.createElement('div');
        snow.className = 'snowflake';
        snow.innerHTML = snowflakes.charAt(Math.floor(Math.random() * snowflakes.length));
        snow.style.left = Math.random() * 100 + 'vw';
        snow.style.animationDuration = (Math.random() * 3 + 3) + 's';
        snow.style.fontSize = (Math.random() * 16 + 12) + 'px';
        document.body.appendChild(snow);
        setTimeout(() => snow.remove(), 6000);
      }, 300);
    }

    // 页面加载后启动
    window.addEventListener('load', () => {
      createSnow();
    });
  </script>
</body>
</html>